<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>查看医院</title>
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}"/>
</head>
<body>
<div th:replace="~{common/layout :: header}"></div>
<div th:replace="~{common/layout :: sidebar}"></div>
<div class="container mt-5">
  <h1 class="mb-4">查看医院信息</h1>
  <div class="form-horizontal">
    <div class="form-group">
      <label class="control-label col-sm-2">ID:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.hpId}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">名称:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.name}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">图片:</label>
      <div class="col-sm-10">
        <img th:src="@{${hospital.picture}}" alt="图片" width="100">
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">电话:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.telephone}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">地址:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.address}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">营业时间:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.businessHours}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">截止日期:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.deadline}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">规则:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.rule}"></p>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2">状态:</label>
      <div class="col-sm-10">
        <p class="form-control-static" th:text="${hospital.state == 1 ? 'Active' : 'Inactive'}"></p>
      </div>
    </div>
  </div>
  <a href="/hospitals" class="btn btn-default">返回医院列表</a>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
